这已经有点类型面向对象开发的方式,但是我不同意把一个标签的多个class认为是一次多重继承,他顶多只能算是一种混入(Mixin),比如Scala中的trait。 局部描述还有更多实际使用中的案例,并且,他的技巧和好处远不止于此,这里就不再累赘的进行描述了。
基于156个网页-相关网页
以上来源于: WordNet
The Resource Template Mixin builds upon the concept of OS Templates.
资源模板Mixin建立在操作系统模板之上。
Mixins in Jam, like ordinary classes, define types; mixin instantiations have both the type of the mixin and the type of the parent.
Jam中的mixin与普通类相似,都定义类型;mixin实例化拥有mixin的类型和父类的类型。
A mixin can implement multiple interfaces.
一个mixin可以实现多个接口。
应用推荐